﻿
namespace SanguoSharp.Server.Cards
{
    public sealed class 桃 : GeneralCard
    {
        public 桃(Game game, int id, CardSuit suit, CardRank rank)
            : base(game, id, CardType.桃, suit, rank)
        {
        }

        protected override void OnPlay(Player owner)
        {
            if (owner.LifePoints == owner.MaxLifePoints)
                throw new BadUsageException();
            owner.ModifyLifePoints(owner.BeerPower);
        }
    }
}